export default (_self, h) => {
  return [
      h('Button', {
          props: {
              type:"primary",
              size: _self.obj.size || "default",
              disabled:_self.disabled
          },
          style:{
              'margin-left': _self.obj.marginLeft + 'px',
              'margin-top': _self.obj.marginTop + 'px',
          },
          on: {
              click: (event) => {
                  event.stopPropagation(); //阻止事件冒泡
              }
          }
      },_self.obj.label)
  ];
};

export let dividerConf = {
    //栅格
    type: 'divider',
    // 是否可配置
    config: true,
    // 控件左侧label内容
    label: '分割线',
    // 是否被渲染
    visibility: true,
    props:undefined,
    orientationOptions:[{"value":"left","label":"左侧"},{"value":"center","label":"居中"},{"value":"right","label":"右侧"}],
    props:{
        orientation:'left'
    }
}
